<%@ page language="java" contentType="text/html" pageEncoding="utf-8" import="com.student,java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%ArrayList<student> a=new ArrayList<student>(); %>
<%
a.add(new student("001","libai","男","01",723.0)) ;
a.add(new student("002","mhr","男","02",723.0)) ;
a.add(new student("003","yyh","女","03",723.0)) ;
%>
<table width="780px" border="4px" cellspacing="0" cellpadding="0">
<tr>
	<th>学号</th>
	<th>姓名</th>
	<th>性别</th>
	<th>班级</th>
	<th>成绩</th>
</tr>
<tr>
	<td><%out.println(a.get(1).getNumber()); %></td>
	<td><%out.println(a.get(1).getName()); %></td>
	<td><%out.println(a.get(1).getSex()); %></td>
	<td><%out.println(a.get(1).getGrade()); %></td>
	<td><%out.println(a.get(1).getScore()); %></td>
</tr>
<tr>
	<td><%out.println(a.get(2).getNumber()); %></td>
	<td><%out.println(a.get(2).getName()); %></td>
	<td><%out.println(a.get(2).getSex()); %></td>
	<td><%out.println(a.get(2).getGrade()); %></td>
	<td><%out.println(a.get(2).getScore()); %></td>
</tr>
<tr>
	<td><%out.println(a.get(0).getNumber()); %></td>
	<td><%out.println(a.get(0).getName()); %></td>
	<td><%out.println(a.get(0).getSex()); %></td>
	<td><%out.println(a.get(0).getGrade()); %></td>
	<td><%out.println(a.get(0).getScore()); %></td>
</tr>
</table>
</body>
</html>